5d08ca3ae3bde83dc206b9466a53b05228372a47,groovy-language-server/src/test/java/com/palantir/ls/groovy/GroovycWrapperTest.java,GroovycWrapperTest,testReferences_enum,#,718

Before Change


                        Optional.of("pet")),
                // pet method returns a Animal
                createSymbolInformation("pet", SymbolKind.Method,
                        createLocation(scriptFile.getAbsolutePath(), Ranges.createRange(2, 0, 5, 1)),
                        Optional.of("MyScript")),
                // generated symbols
                createSymbolInformation("valueOf", SymbolKind.Method,

After Change


                createSymbolInformation("friend", SymbolKind.Variable,
                        createLocation(scriptFile.getAbsolutePath(), Ranges.createRange(0, 7, 0, 13)),
                        Optional.of("MyScript")),
                createSymbolInformation("friend", SymbolKind.Variable,
                        createLocation(scriptFile.getAbsolutePath(), Ranges.createRange(0, 7, 0, 13)),
                        Optional.of("run")),
                createSymbolInformation("animal", SymbolKind.Variable,
                        createLocation(scriptFile.getAbsolutePath(), Ranges.createRange(2, 11, 2, 24)),
                        Optional.of("pet")),
                createSymbolInformation("myAnimal", SymbolKind.Variable,
                        createLocation(scriptFile.getAbsolutePath(), Ranges.createRange(3, 10, 3, 18)),
                        Optional.of("pet")),
                // pet method returns a Animal
                createSymbolInformation("pet", SymbolKind.Method,
                        createLocation(scriptFile.getAbsolutePath(), Ranges.createRange(2, 0, 6, 1)),
                        Optional.of("MyScript")),
                // generated symbols
                createSymbolInformation("valueOf", SymbolKind.Method,